package com.swagger.demo.admin.custom2.controller;

import com.jfinal.core.Controller;
import com.jfinal.core.Path;
import com.lastb7.swagger.annotation.ApiResCustom;
import com.swagger.demo.admin.custom2.bean.DemoSetDataJsonUser;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;

/**
 * @author: lbq
 * @email: 526509994@qq.com
 * @date: 2022/10/17
 */
@Path("/customRes2")
@Api(description = "customRes2", tags = "自定义返回值2")
public class Custom2Controller extends Controller {



    @ApiOperation("2.11.0 版本返回值bean自定义不支持内部类[测试]")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "paramA", value = "参数a", defaultValue = "1111"),
            @ApiImplicitParam(name = "paramB", value = "参数b", defaultValue = "222"),
    })
    @ApiResCustom(DemoSetDataJsonUser.class)
    public void test1(String paramA, String paramB) {

        this.renderJson();
    }
}
